package org.dromara.tearoom.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.tearoom.domain.TerAccounts;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 账户视图对象 ter_accounts
 *
 * @author xch
 * @date 2025-05-07
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TerAccounts.class)
public class TerAccountsVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long id;

    /**
     * 会员id
     */
    @ExcelProperty(value = "会员id")
    private Long memberId;

    /**
     * 余额
     */
    @ExcelProperty(value = "余额")
    private Integer balance;

    /**
     * 积分
     */
    @ExcelProperty(value = "积分")
    private Integer integral;

    /**
     * 是否可用
     */
    @ExcelProperty(value = "是否可用", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "ter_account_type")
    private Integer type;

    private Integer giftAmount;

    private Integer totalAmount;
}
